<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>EasyPhpThumbnail Class | MyWebMyMail.com</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

	<link rel="shortcut icon" href="/misc/favicon.ico" type="image/x-icon"/>
	<link type="text/css" rel="stylesheet" media="all" href="/modules/aggregator/aggregator.css?6"/>
	<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?6"/>
	<link type="text/css" rel="stylesheet" media="all" href="/modules/poll/poll.css?6"/>
	<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?6"/>
	<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?6"/>
	<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?6"/>
	<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?6"/>
	<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/fivestar/css/fivestar.css?6"/>
	<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/mollom/mollom.css?6"/>
	<link type="text/css" rel="stylesheet" media="all" href="/modules/forum/forum.css?6"/>
	<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/wabi/style.css?6"/>
	<script src="/misc/jquery.js?6"></script>
	<script src="/misc/drupal.js?6"></script>
	<script src="/sites/all/modules/fivestar/js/fivestar.js?6"></script>
	<script src="/sites/all/modules/google_analytics/googleanalytics.js?6"></script>
	<script src="/sites/all/modules/mollom/mollom.js?6"></script>
	<script src="/misc/tableheader.js?6"></script>
	<script>
		<!--//--><![CDATA[//><!--
		jQuery.extend(Drupal.settings, { "basePath":"/", "fivestar":{ "titleUser":"Your rating: ", "titleAverage":"Average: ", "feedbackSavingVote":"Saving your vote...", "feedbackVoteSaved":"Your vote has been saved.", "feedbackDeletingVote":"Deleting your vote...", "feedbackVoteDeleted":"Your vote has been deleted." }, "googleanalytics":{ "trackOutgoing":1, "trackMailto":1, "trackDownload":1, "trackDownloadExtensions":"7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip" } });
		//--><!]]>
	</script>
	<!--[if lt IE 7]>
	<style type="text/css" media="all">@import "/sites/all/themes/wabi/fix-ie.css";</style>
	<![endif]-->
	<script></script>
</head>


<body>

<div id="wrapper" style="width: 90%;">

<div id="container">

<table border="0" cellpadding="0" cellspacing="0" id="header">
	<tr>
		<td id="logo" valign="top">
			<a href="/" title="Home"><img src="/sites/all/themes/wabi/logo.png" alt="Home"/></a></td>
		<td id="site_name">
			<h1><a href="/" title="Home">MyWebMyMail.com</a></h1>
		</td>
		<td id="site_search">
		</td>
	</tr>
</table>


<table border="0" cellpadding="0" cellspacing="0" id="menu">
	<tr>
		<td id="menu-l"></td>
		<td id="menu">
			<ul class="links" id="navlist">
				<li class="menu-743 first"><a href="/?q=user" title="Login to post in our support forum or add comments">Login</a></li>
				<li class="menu-1505 last"><a href="/?q=search" title="Search this website">Search</a></li>
			</ul>
		</td>
		<td id="menu-r"></td>
	</tr>
</table>


<table border="0" cellpadding="0" cellspacing="0" id="content">

<tr>
<td id="main-l"></td>

<td id="sidebar-left" class="sidebar sidebar-left" valign="top">
	<div id="block-menu-menu-softwaremenu" class="clear-block block block-menu">
		<h2>Free Software</h2>

		<div class="content">
			<ul class="menu">
				<li class="collapsed first"><a href="/?q=content/easyphpalbum-details" title="The single script online gallery">EasyPhpAlbum</a></li>
				<li class="leaf"><a href="/?q=content/easyphpalbum-lite" title="EasyPhpAlbum Lite">EasyPhpAlbum Lite</a></li>
				<li class="leaf active-trail"><a href="/?q=content/easyphpthumbnail-class" title="Use this class for your on-the-fly image manipulation in PHP" class="active">EasyPhpThumbnail</a></li>
				<li class="leaf"><a href="/?q=content/easyphpeventcalendar-class" title="EasyPhpEventCalendar Class">EasyPhpEventCalendar</a></li>
				<li class="leaf"><a href="/?q=content/easyphpmassemail-class" title="Send mass emails with this class using only the mail() command">EasyPhpMassEmail</a></li>
				<li class="leaf"><a href="/?q=content/easyphpwipejpg" title="Wipe or clean EXIF, IPTC and comment information from JPG files">EasyPhpWipeJPG</a></li>
				<li class="leaf"><a href="/?q=content/photoshoot" title="Photoshoot">Photoshoot</a></li>
				<li class="leaf"><a href="/?q=content/xml-image-and-video-sitemap-creator" title="Creates an XML sitemap from images and videos by crawling through the directory structure">XML Sitemap Creator</a></li>
				<li class="leaf"><a href="/?q=content/java-ftp-scheduler" title="A JAVA application to automate upload or download of files by FTP">JAVA FTP Scheduler</a></li>
				<li class="leaf"><a href="/?q=content/lampp-distribution" title="Small Linux distribution based on Slax Frodo">100MB Linux</a></li>
				<li class="leaf last"><a href="/?q=content/file2genre-file-sorting-shell-script" title="Sort your files into directories automatically with the file2genre sorting script">File2Genre Bash Script</a></li>
			</ul>
		</div>
	</div>
	<div id="block-menu-menu-digitalshop" class="clear-block block block-menu">
		<h2>Buy Digital Shop</h2>

		<div class="content">
			<ul class="menu">
				<li class="leaf first"><a href="/?q=content/digital-shop" title="Buy the script!">Digital Shop Script</a></li>
				<li class="leaf"><a href="http://www.mywebmymail.com/digitalshop/digitalshop.php" title="Purchase scripts and software in the Digital Shop">Visit Digital Shop</a></li>
				<li class="collapsed"><a href="/?q=content/digital-shop-cms-integration" title="Implementation of the Digital Shop in a CMS">Digital Shop &#039;CMS&#039;</a></li>
				<li class="leaf last"><a href="/?q=content/affiliate-center" title="Affiliate Center">Become an Affiliate</a></li>
			</ul>
		</div>
	</div>
	<div id="block-menu-menu-3dpostcard" class="clear-block block block-menu">
		<h2>Buy 3D Postcard</h2>

		<div class="content">
			<ul class="menu">
				<li class="leaf first"><a href="/?q=content/3d-postcard-generator" title="Try it yourself and create a free 3D postcard">3D Postcard Generator</a></li>
				<li class="leaf last"><a href="http://3dpostcard.mywebmymail.com/3dpostcard.php" title="Create a card for free">Create a postcard</a></li>
			</ul>
		</div>
	</div>
	<div id="block-menu-menu-drupalmodules" class="clear-block block block-menu">
		<h2>Drupal Modules</h2>

		<div class="content">
			<ul class="menu">
				<li class="leaf first last"><a href="/?q=content/rfi-report" title="RFI Report">Drupal RFI Report</a></li>
			</ul>
		</div>
	</div>
	<div id="block-menu-menu-contentmenu" class="clear-block block block-menu">
		<h2>Content</h2>

		<div class="content">
			<ul class="menu">
				<li class="leaf first"><a href="/?q=content/gallery" title="Implementation of EasyPhpAlbum">Photo Gallery</a></li>
				<li class="collapsed"><a href="/?q=content/tips-and-tricks" title="Solutions for programming and computer related problems">Tips and Tricks</a></li>
				<li class="leaf"><a href="/?q=content/klaverjassen" title="A score sheet for the popular game klaverjassen">Klaverjassen</a></li>
				<li class="collapsed last"><a href="/?q=content/programming-exercises" title="Some code examples in Excel, VBS and Windows">Programming Exercises</a></li>
			</ul>
		</div>
	</div>
	<div id="block-menu-menu-supportmenu" class="clear-block block block-menu">
		<h2>Support</h2>

		<div class="content">
			<ul class="menu">
				<li class="leaf first"><a href="/?q=forum" title="Forum for all software titles">Software Forum</a></li>
				<li class="leaf"><a href="/?q=search" title="Powerful search through entire site content">Search site and forum</a></li>
				<li class="leaf"><a href="/?q=content/advertising" title="Advertise on mywebmymail.com">Advertising</a></li>
				<li class="leaf last"><a href="/?q=content/donate-mywebmymailcom" title="Donate to MyWebMyMail.com">Donate</a></li>
			</ul>
		</div>
	</div>
	<div id="block-menu-menu-intriguing" class="clear-block block block-menu">
		<h2>Intriguing</h2>

		<div class="content">
			<ul class="menu">
				<li class="leaf first last"><a href="http://www.mywebmymail.com/?q=content/antikythera-mechanism" title="The Antikythera mechanism is an ancient over 2100 years old mechanical device known as the first computer.">Antikythera Mechanism</a></li>
			</ul>
		</div>
	</div>
	<div id="block-menu-menu-entertaining" class="clear-block block block-menu">
		<h2>Entertaining</h2>

		<div class="content">
			<ul class="menu">
				<li class="leaf first"><a href="/?q=content/asteroids" title="The classic Asteroids game in JAVA">Asteroids</a></li>
				<li class="leaf"><a href="/?q=content/tailgunner" title="An &#039;old&#039; style wireframe game">Tailgunner</a></li>
				<li class="leaf last"><a href="/?q=content/bbc-java-emulator" title="Emulate the Acorn BBC-B in JAVA!">BBC Java Emulator</a></li>
			</ul>
		</div>
	</div>
	<div id="block-block-5" class="clear-block block block-block">
		<div class="content"><!-- AddThis Button BEGIN -->
			<table style="width : 100%;">
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td style="text-align : center;">
						<a class="addthis_button" href="http://addthis.com/bookmark.php?v=250&amp;username=xa-4b377d865796c05a"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a>
						<script src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4b377bb47f5356eb">
							var addthis_config = {
								data_ga_tracker:"pageTracker"
							};
						</script>
					</td>
				</tr>
			</table>
			<!-- AddThis Button END -->


		</div>
	</div>
	<div id="block-block-6" class="clear-block block block-block">
		<div class="content">
			<div style="width : 100%;text-align: center;">
				<center>
					<p>&nbsp;</p>
					<script><!--
					google_ad_client = "pub-5765361673811411";
					/* 120x600, gemaakt 8-6-10 */
					google_ad_slot = "7730912420";
					google_ad_width = 120;
					google_ad_height = 600;
					//-->
					</script>
					<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
					<p>&nbsp;</p>
					<!--
	 <a href="https://www.google.com/adplanner/site_profile?s=mywebmymail.com&b=1"><img src="http://www.gstatic.com/ads/branding/adplanner/dcap88_31.gif" border=none width=88 height=31 title="Find my site on DoubleClick Ad Planner"></a>
	 //-->
				</center>
			</div>
		</div>
	</div>
</td>

<td id="main-content" valign="top">


<div id="main">
<div class="breadcrumb"><a href="/">Home</a></div>
<div id="cr8"></div>
<div class="tabs"></div>
<table class="node">

<tr>
	<td class="node-tl"></td>
	<td class="node-tc"></td>
	<td class="node-tr"></td>
</tr>

<tr>
<td class="node-ml"></td>
<td class="node-mc">

<table class="nodetitle">
	<tr>
		<td>
			<h2 class="title"><a href="/?q=content/easyphpthumbnail-class">EasyPhpThumbnail Class</a></h2>
			<span class="submitted">Submitted by admin on Fri, 02/27/2009 - 20:29</span>
			<span class="taxonomy"></span>
		</td>
	</tr>
</table>
<div class="content">
<table cellspacing="0" cellpadding="10" width="90%" align="center">
	<tbody>
	<tr>
		<td>The EasyPhpThumbnail Image Effects class allows you to handle image manipulation and PHP thumbnail generation for GIF, JPG and PNG on-the-fly. The class is <b>FREE</b>, 100% PHP based, available for PHP4 (from 4.3.11) and PHP5, is easy to use and provides lots of functionality with over 60 manipulations:<br/><br/>
			<b>Resize, crop, rotate, flip, save as, shadow, watermark, text, border, sharpen, blur, water ripple, mirror, perspective, twirl, animation, displacement maps and more!!</b><br/><br/>
			You may use this class for your personal or open-source projects as long as you do not charge a fee. If you develop websites for a fee or if you plan to use this class in a commercial package, please purchase the EasyPhpThumbnailPro class from our shop.<br/><br/>
		</td>
		<td><a href="http://www.mywebmymail.com/?q=system/files/easyphpthumbnail.zip"><img src="/sites/all/images/downloadicon.png" border="0" alt="Download now" title="Download now" width="92" height="92"/></a></td>
	</tr>
	</tbody>
</table>

<center>
	<img src="http://www.mywebmymail.com/images/stories/example-twirl-mirror.jpeg" border="0"/>
</center>

<p><strong>Support EasyPhpThumbnail by booking your next hotel through the link below:</strong></p>

<p>

<div style="text-align: center">
	<center>
		<a href="http://www.booking.com/index.html?aid=310732" taget="_blank"><img src="http://www.mywebmymail.com/images/stories/bookingdotcom.gif" border="0" alt="Booking.com" title="Book a hotel"/></a>
	</center>
</div>
</p>

<br/><br/>

<b>Getting started:</b><br/><br/>
1. Download EasyPhpThumbnail and upload the example directory to your webserver<br/>
2. Upload the class (PHP4 or PHP5 version) to the 'inc' example directory<br/>
3. Open the example.php page in your browser<br/><br/>

This will display a resized thumbnail. You can edit the example.php file and try one of the many examples.<br/><br/>

<b>The most simple example script would be:</b><br/><br/>
<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_09.jpg" border="0"/><br/><br/>

This would create a thumbnail with the standard settings and send the result to the browser (dynamic or on-the-fly thumbnail generation).<br/><br/>
If you want to integrate the thumbnail on a webpage, you have to use a dynamic image. Create a separate PHP file called for example <strong>'thumbnail.php'</strong> and add your code there:<br/><br/>

<pre>&lt;?php
if (isset($_REQUEST['thumb'])) {
 include_once('inc/easyphpthumbnail.<span>class</span>.php');
 // Your full path to the images
 $dir = str_replace(chr(92),chr(47),getcwd()) . '/gfx/';
 // Create the thumbnail
 $thumb = <span>new</span> easyphpthumbnail;
 $thumb -> Thumbsize = <span>300</span>;
 $thumb -> Createthumb($dir . basename($_REQUEST['thumb']));
}
?></pre>
<br/><br/>

Then on your page where you need the thumbnail add a link to the image like (save this sample as <strong>photo.php</strong>):<br/><br/>
<pre>&lt;?php
$file='image.jpg';
echo "&#60;img src=\"thumbnail.php?thumb=$file\" alt=\"thumb\" /&#62";
?></pre>
<br/><br/>

The directory structure in the above example would be: <strong>inc</strong> which includes the class, <strong>gfx</strong> for the images (needs to contain a file called <strong>'image.jpg'</strong>) and the files <strong>photo.php</strong> and <strong>thumbnail.php</strong>. Open the file <strong>'photo.php'</strong> in your browser to see the result.The example above would show a larger
thumbnail by using the 'Thumbsize' parameter:<br/><br/>

<img src="http://www.mywebmymail.com/images/stories/example_08.jpg" border="0"/><br/><br/>

<b>Writing the thumbnail to file:</b><br/><br/>
<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Createthumb('gfx/image.jpg','file');
?></pre>
<br/><br/>

<b>For batch creation of thumbnails you can pass an array with filenames:</b><br/><br/>
<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Createthumb(array('gfx/image.jpg','image2.jpg','image3.jpg'),'file');
?></pre>
<br/><br/>

Alternatively you can pass filename by filename allowing you to customize some options per image. In the example script below every image in the working directory is converted to JPG format and saved in the subdirectory 'gfx/thumbs/'. In addition the thumbnail files are renamed with prefix '120px_thumb_' and chmod-ded to '0755'.<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>120</span>;
$thumb -> Chmodlevel = '<span>0755</span>';
$thumb -> Thumblocation = 'gfx/thumbs/';
$thumb -> Thumbsaveas = 'jpg';
$thumb -> Thumbprefix = '<span>120</span>px_thumb_';
<span>if</span> ($dir=@opendir('./')) {
  while ($filename=@readdir($dir)) {
    <span>if</span> (($filename!=<span>'.'</span>) && ($filename!='..') && !is_dir($filename)) {
      $extension=strtolower(substr($filename,strrpos($filename,<span>'.'</span>)+<span>1</span>,strlen($filename)));
      <span>if</span> ($extension=='jpg' || $extension=='jpeg' || $extension=='png' || $extension=='gif') {
        <span style=' color: Green;'>// Output to file</span>
        <span style=' color: Green;'>// You can add some custom changes for individual images here</span>
        $thumb -> Createthumb($filename,'file');
      }
    }
  }
}
?>
</pre>
<br/><br/>

<b>Now let's add some more options:</b><br/><br/>
<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>50</span>;
$thumb -> Percentage = <span>true</span>;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_11.jpg" border="0"/><br/><br/>

The standard resizing option is based in pixels, enable the percentage as in the example above and the thumbnail will be resized to 50%. The Thumbsize parameter resizes automatically based on width for landscape images and height for portrait images. In the example below we rotate the image by 90 degrees to obtain a portrait image, which is resized by 50%.<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>50</span>;
$thumb -> Rotate = <span>90</span>;
$thumb -> Percentage = <span>true</span>;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_12.jpg" border="0"/><br/><br/>

The example below adds a shadow to the thumbnail, the background color is matched with the page background color.<br/><br/>
<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Backgroundcolor = '#D0DEEE';
$thumb -> Shadow = <span>true</span>;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_01.jpg" border="0"/><br/><br/>

Round the corners for a nice effect. The Clip corners function is an array with 7 values; <br/><br/>
[0]: 0=disable 1=straight 2=rounded<br/>
[1]: Percentage of clipping<br/>
[2]: Clip randomly - Boolean 0=disable 1=enable<br/>
[3]: Clip top left - Boolean 0=disable 1=enable<br/>
[4]: Clip bottom left - Boolean 0=disable 1=enable<br/>
[5]: Clip top right - Boolean 0=disable 1=enable<br/>
[6]: Clip bottom right - Boolean 0=disable 1=enable<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Backgroundcolor = '#D0DEEE';
$thumb -> Clipcorner = array(<span>2</span>,<span>15</span>,<span>0</span>,<span>0</span>,<span>1</span>,<span>1</span>,<span>0</span>);
$thumb -> Createthumb('gfx/image.jpg');
?>
</pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_13.jpg" border="0"/><br/><br/>

You can also round the corners and make them transparent:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Backgroundcolor = '#0000FF';
$thumb -> Clipcorner = array(2,15,0,1,1,1,1);
$thumb -> Maketransparent = array(1,1,'#0000FF',30);
$thumb -> Createthumb('gfx/image.jpg');
?>
</pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/transcorner.gif" border="0"/><br/><br/>


You can add a frame to create a more realistic photo effect:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Framewidth = <span>10</span>;
$thumb -> Framecolor = '#FFFFFF';
$thumb -> Backgroundcolor = '#D0DEEE';
$thumb -> Shadow = <span>true</span>;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_21.jpg" border="0"/><br/><br/>

The next example will show a more 'classic' thumbnail using a shadow and frame around the photo and the binder functionality.<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Framewidth = <span>10</span>;
$thumb -> Framecolor = '#FFFFFF';
$thumb -> Backgroundcolor = '#D0DEEE';
$thumb -> Shadow = <span>true</span>;
$thumb -> Binder = <span>true</span>;
$thumb -> Binderspacing = <span>8</span>;
$thumb -> Clipcorner = array(<span>2</span>,<span>15</span>,<span>0</span>,<span>1</span>,<span>1</span>,<span>1</span>,<span>0</span>);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_02.jpg" border="0"/><br/><br/>

Of course it is also possible to watermark your images. The position is determined by providing the XY position in a % of width and height. The position '0% 0%' would be top-left, '100% 100%' will be bottom right. The transparency of the PNG image can be set between 0 and 100. You get the best effect with transparent PNG images as shown in the example below: <br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Framewidth = <span>10</span>;
$thumb -> Framecolor = '#<span>00000</span>';
$thumb -> Backgroundcolor = '#<span>000000</span>';
$thumb -> Clipcorner = array(<span>2</span>,<span>15</span>,<span>0</span>,<span>1</span>,<span>1</span>,<span>1</span>,<span>1</span>);
$thumb -> Watermarkpng = 'watermark.png';
$thumb -> Watermarkposition = '<span>50</span>% <span>50</span>%';
$thumb -> Watermarktransparency = <span>70</span>;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_03.jpg" border="0"/><br/><br/>

Another option to protect your copyright is to write a short text on the image. The following example uses the systemfont.<br/>
The textcolor, black or white, is automatically determined based on the color of the background of the image.<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Copyrighttext = 'MYWEBMYMAIL.COM';
$thumb -> Copyrightposition = '<span>0</span>% <span>95</span>%';
$thumb -> Createthumb('gfx/image.jpg');
?>
</pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_15.jpg" border="0"/><br/><br/>

For a nicer effect you can use a TTF font: <br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Copyrighttext = 'MYWEBMYMAIL.COM';
$thumb -> Copyrightposition = '<span>50</span>% <span>90</span>%';
$thumb -> Copyrightfonttype = 'handwriting.ttf';
$thumb -> Copyrightfontsize = <span>30</span>;
$thumb -> Copyrighttextcolor = '#FFFFFF';
$thumb -> Createthumb('gfx/image.jpg');
?>
</pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_14.jpg" border="0"/><br/><br/>

Adding a border to the image creates very interesting effects.<br/>
In the following example a transparent PNG image with blue border and white inner-frame was used.<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Framewidth = <span>10</span>;
$thumb -> Framecolor = '#<span>00000</span>';
$thumb -> Borderpng = 'border.png';
$thumb -> Copyrighttext = 'MYWEBMYMAIL.COM';
$thumb -> Copyrightposition = '<span>50</span>% <span>80</span>%';
$thumb -> Copyrightfonttype = 'handwriting.ttf';
$thumb -> Copyrightfontsize = <span>30</span>;
$thumb -> Copyrighttextcolor = '#FFFFFF';
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_04.jpg" border="0"/><br/><br/>

Another border example:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Borderpng = 'cloud.png';
$thumb -> Createthumb('gfx/image.jpg');
?>
</pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_16.jpg" border="0"/><br/><br/>

You can crop the image from the sides or from the center.<br/><br/>
The crop function is an array with 6 values;<br/><br/>
[0]: 0=disable 1=enable free crop 2=enable center crop<br/>
[1]: 0=percentage 1=pixels<br/>
[2]: Crop left<br/>
[3]: Crop right<br/>
[4]: Crop top<br/>
[5]: Crop bottom<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Cropimage = array(<span>2</span>,<span>0</span>,<span>20</span>,<span>20</span>,<span>35</span>,<span>35</span>);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_20.jpg" border="0"/><br/><br/>

You can convert the image to greyscal or age it using the aging function which is an array with 3 values;<br/><br/>
[0]: Boolean 0=disable 1=enable<br/>
[1]: Add noise 0-100, 0=disable<br/>
[2]: Sephia depth 0-100, 0=disable (=greyscale)<br/><br/>

By adding 'noise' to the image it will look less sharp, the sephia turns it into old darkbrownish colors.<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Shadow = <span>true</span>;
$thumb -> Backgroundcolor = '#D0DEEE';
$thumb -> Cropimage = array(<span>2</span>,<span>0</span>,<span>20</span>,<span>20</span>,<span>35</span>,<span>35</span>);
$thumb -> Ageimage = array(<span>1</span>,<span>10</span>,<span>80</span>);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_05.jpg" border="0"/><br/><br/>

You can rotate or flip the image. The following example flips the image over the horizontal axis:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Fliphorizontal = <span>true</span>;
$thumb -> Createthumb('gfx/image.jpg');
?>
</pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_17.jpg" border="0"/><br/><br/>

Flipping over the vertical axis:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Flipvertical = <span>true</span>;
$thumb -> Createthumb('gfx/image.jpg');
?>
</pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_18.jpg" border="0"/><br/><br/>

Rotate at any angle <strong><em>without cropping the image</em></strong>, the example below rotates the image over -75 degrees:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Rotate = -<span>75</span>;
$thumb -> Backgroundcolor = '#D0DEEE';
$thumb -> Createthumb('gfx/image.jpg');
?>
</pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_19.jpg" border="0"/><br/><br/>

The 'Square' function will create a square canvas (same width and height - for demonstration the background/canvas is red):<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Backgroundcolor = '#FF0000';
$thumb -> Cropimage = array(<span>2</span>,<span>0</span>,<span>20</span>,<span>20</span>,<span>35</span>,<span>35</span>);
$thumb -> Ageimage = array(<span>1</span>,<span>0</span>,<span>0</span>);
$thumb -> Rotate = <span>180</span>;
$thumb -> Square = <span>true</span>;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_06.jpg" border="0"/><br/><br/>

You can combine all the above image manipulations, the class will determine the correct order in which to apply them.<br/>
Setting the 'Quality' will improve the output result of JPG images: <br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Backgroundcolor = '#<span>0000</span>FF';
$thumb -> Clipcorner = array(<span>2</span>,<span>15</span>,<span>0</span>,<span>1</span>,<span>1</span>,<span>1</span>,<span>1</span>);
$thumb -> Quality = <span>100</span>;
$thumb -> Rotate = -<span>35</span>;
$thumb -> Square = <span>true</span>;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_07.jpg" border="0"/><br/><br/>

You can also apply image manipulations without resizing the original image by setting the 'Thumbsize' parameter to zero, as shown below:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>0</span>;
$thumb -> Backgroundcolor = '#D0DEEE';
$thumb -> Clipcorner = array(<span>2</span>,<span>5</span>,<span>0</span>,<span>1</span>,<span>1</span>,<span>1</span>,<span>1</span>);
$thumb -> Watermarkpng = 'watermark.png';
$thumb -> Watermarkposition = '<span>0</span>% <span>100</span>%';
$thumb -> Watermarktransparency = <span>50</span>;
$thumb -> Copyrighttext = 'Copyright (c)';
$thumb -> Copyrightposition = '<span>100</span>% <span>90</span>%';
$thumb -> Copyrightfonttype = 'handwriting.ttf';
$thumb -> Copyrightfontsize = <span>30</span>;
$thumb -> Copyrighttextcolor = '#D0DEEE';
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_22.jpg" border="0"/><br/><br/>

<strong>New functionality added in version 1.0.2:</strong><br/><br/>

User defined filters for PHP4 and PHP5 similar to Paint Shop Pro. A 3x3 filter matrix is applied to the image. The class includes standard filters for sharpening, blurring, embossing and edge detection:
<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Edge = true;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/filter_original_image.jpg" border="0"/> <img src="http://www.mywebmymail.com/images/stories/example_edge.jpg" border="0"/><br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Emboss = true;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/filter_original_image.jpg" border="0"/> <img src="http://www.mywebmymail.com/images/stories/example_emboss.jpg" border="0"/><br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Sharpen = true;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/filter_original_image.jpg" border="0"/> <img src="http://www.mywebmymail.com/images/stories/example_sharpen.jpg" border="0"/><br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Blur = true;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/filter_original_image.jpg" border="0"/> <img src="http://www.mywebmymail.com/images/stories/example_blur.jpg" border="0"/><br/><br/>

It is also possible to define your own filter and set the divisor and offset parameters:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Filter = array(-1,-1,-1,-1,8,-1,-1,-1,-1);
$thumb -> Divisor = 1;
$thumb -> Offset = 0;
$thumb -> Applyfilter = true;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/filter_original_image.jpg" border="0"/> <img src="http://www.mywebmymail.com/images/stories/example_filter.jpg" border="0"/><br/><br/>

Another function added in version 1.0.2 is the standard rotate() function that rotates and crops the image to fit the canvas:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Backgroundcolor = '#D0DEEE';
$thumb -> Rotate = -30;
$thumb -> Croprotate = true;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/croprotate_image.jpg" border="0"/><br/><br/>

<strong>New functionality added in version 2.0.0:</strong><br/><br/>

Perspective allows you to create a 2D perspective from the left, right, top or bottom side to the image or thumbnail:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Backgroundcolor = '#D0DEEE';
$thumb -> Perspective = array(1,0,20);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_perspective.jpg" border="0"/><br/><br/>

By using the shading function a shadow gradient can be applied from the left, right, top or bottom side to the image:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Shading = array(1,70,80,0);
$thumb -> Shadingcolor = '#D0DEEE';
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_shading.jpg" border="0"/><br/><br/>

The mirror effect mirrors a part of the image and uses a gradient for enhanced effect. It is possible to set a reflection gap between the image and reflection:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Mirror = array(1,10,70,40,2);
$thumb -> Mirrorcolor = '#D0DEEE';
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_mirror.jpg" border="0"/><br/><br/>

The negative and grayscale function create true color results:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Greyscale = true;
//$thumb -> Negative = true;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_greyscale.jpg" border="0"/>
<img src="http://www.mywebmymail.com/images/stories/example_negative.jpg" border="0"/><br/><br/>

Replace colors with the colorreplace function and define a tolerance/sensitivity:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Colorreplace = array(1,'#FFFFFF','#FF6600',60);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_colorreplace.jpg" border="0"/><br/><br/>

Define a transparent color with tolerance/sensitivity (8-bit GIF or PNG):<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Maketransparent = array(1,0,'#171915',30);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_transparent.png" border="0"/><br/><br/>

Repositioning pixels randomly creates interesting effects:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Pixelscramble = array(1,4,2);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_scramble.jpg" border="0"/><br/><br/>

Brightness, contrast and gamma can also be modified:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Brightness = array(1,50);
//$thumb -> Contrast = array(1,30);
//$thumb -> Gamma = array(1,0.5);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_brightness.jpg" border="0"/>
<img src="http://www.mywebmymail.com/images/stories/example_contrast.jpg" border="0"/>
<img src="http://www.mywebmymail.com/images/stories/example_gamma.jpg" border="0"/><br/><br/>

It is possible to merge/blend a color or reduce the colors in the palette:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Colorize = array(1,0,0,125,0);
//$thumb -> Palette = array(1,64);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_colorize.jpg" border="0"/>
<img src="http://www.mywebmymail.com/images/stories/example_palette.jpg" border="0"/><br/><br/>

Noise in images can be reduced by a mean filter, this generally blurs the image:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Mean = true;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/imagenoise.jpg" border="0"/>
<img src="http://www.mywebmymail.com/images/stories/example_mean.jpg" border="0"/><br/><br/>

Another method to reduce noise is with a median filter, which provides excellent results in filtering 'dead' pixels:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Medianfilter = true;
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/imagenoise.jpg" border="0"/>
<img src="http://www.mywebmymail.com/images/stories/example_median.jpg" border="0"/><br/><br/>

Below follow some interesting image deformation filters starting with a simple pixelate filter and ending with
mathematical bilineair deformations:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Pixelate = array(1,10);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_pixelate.jpg" border="0"/><br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Ripplefx = array(1,5,15,5,5);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_ripple.jpg" border="0"/><br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Twirlfx = array(1,20,0);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_twirl.jpg" border="0"/><br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Lakefx = array(1,15,80);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_lake.jpg" border="0"/><br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Waterdropfx = array(1,1.2,400,40);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_waterdrop.jpg" border="0"/><br/><br/>

<strong>New functionality added in version 2.0.1:</strong><br/><br/>
The function Cropimage() now includes a square scrop, see example below:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>200</span>;
$thumb -> Cropimage = array(<span>3</span>,<span>0</span>,<span>0</span>,<span>0</span>,<span>0</span>,<span>0</span>);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/cropsquareexample.jpeg" border="0"/><br/><br/>

<strong>New functionality added in version 2.0.3:</strong><br/><br/>
The function Create_apng() creates an animated PNG image, see example below (PNG animation is only supported by Mozilla Firefox 3, Opera 9.5, KSquirrel 0.7.2 and XnView 1.92 for the moment, other browsers will display the 1st frame only):<br/><br/>

<pre>&lt;?php
// First we create some new PNG thumbnails
// Then we create the animation
set_time_limit(0);
$frames = array();
$thumb -> Thumbsaveas = 'png';
$thumb -> Thumbprefix = '';
$thumb -> Thumblocation = '';
$thumb -> Copyrighttext = 'MYWEBMYMAIL.COM';
$thumb -> Copyrightfonttype = 'gfx/handwriting.ttf';
$thumb -> Copyrighttextcolor = '#FFFFFF';
for ($i = 1; $i &lt;= 8; $i++) {
 $frames[] = "frame$i.png";
 $thumb -> Thumbfilename = "frame$i.png";
 $thumb -> Copyrightposition = '50% 50%';
 $thumb -> Copyrightfontsize = $i*4;
 // You can also add the waterdrop effect, but it might time out!
 // $thumb -> Waterdropfx = array(1,$i/6,400,40);
 $thumb -> Createthumb('gfx/image.jpg','file');
}
// Create the animation
$thumb -> Create_apng($frames, 'animation.png', 250);
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/animation.png" border="0"/><br/><br/>


<strong>New functionality added in version 2.0.4:</strong><br/><br/>

The Polaroid and displacement map feature, previously only available in the Pro version are now included in the free version:<br/><br/>

<pre>&lt;?php
include_once('easyphpthumbnailpro.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Shadow = <span>true</span>;
$thumb -> Polaroid = <span>true</span>;
$thumb -> Polaroidtext = 'MYWEBMYMAIL.COM';
$thumb -> Polaroidfonttype = 'handwriting.ttf';
$thumb -> Polaroidfontsize = '<span>30</span>';
$thumb -> Polaroidtextcolor = '#<span>000000</span>';
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_10.jpg" border="0"/><br/><br/>

Image deformation is also possible by using a displacement map and bilinear filter. The Red and Green colors of the image in the displacement map
are a measure for the X and Y pixel shift in the original image, grey is neutral. You can spend hours discovering effects of displacement maps:<br/><br/>

<pre>&lt;?php
include_once('easyphpthumbnailpro.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Displacementmap = array(1,'gfx/displacementmap.jpg',0,0,0,50,50);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/displacementmap_ball.jpg" border="0" width="300px"/>
<img src="http://www.mywebmymail.com/images/stories/example_displacementmap.jpg" border="0"/><br/><br/>

<img src="http://www.mywebmymail.com/images/stories/displacementmap_painting.jpg" border="0" width="300px"/>
<img src="http://www.mywebmymail.com/images/stories/example_painting.jpg" border="0"/><br/><br/>

<img src="http://www.mywebmymail.com/images/stories/displacementmap_sea.jpg" border="0" width="300px"/>
<img src="http://www.mywebmymail.com/images/stories/example_sea.jpg" border="0"/><br/><br/>

<img src="http://www.mywebmymail.com/images/stories/displacementmap_brick.jpg" border="0" width="300px"/>
<img src="http://www.mywebmymail.com/images/stories/example_brick.jpg" border="0"/><br/><br/>

A displacement map can be applied to the image and a 2nd map to the thumbnail creating stunning effects:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>300</span>;
$thumb -> Copyrighttext = 'MYWEBMYMAIL.COM';
$thumb -> Copyrightposition = '50% 80%';
$thumb -> Copyrightfonttype = 'gfx/handwriting.ttf';
$thumb -> Copyrightfontsize = 20;
$thumb -> Copyrighttextcolor = '#FFFFFF';
$thumb -> Borderpng = 'gfx/border.png';
$thumb -> Backgroundcolor = '#D0DEEE';
$thumb -> Mirror = array(1,30,90,40,2);
$thumb -> Mirrorcolor = '#D0DEEE';
$thumb -> Displacementmap = array(1,'gfx/displacementmap_ball.jpg',0,0,0,50,50);
$thumb -> Displacementmapthumb = array(1,'gfx/displacementmap.jpg',0,0,200,25,25);
$thumb -> Createthumb('gfx/image.jpg');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/example_double_map.jpg" border="0"/><br/><br/>

By using the Canvas option it is possible to create an image without loading it from file and apply some effects like a text wobble:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Createcanvas(300,50,IMAGETYPE_PNG,'#D0DEEE',false);
$thumb -> Addtext = array(1,'MYWEBMYMAIL.COM','50% 50%','gfx/handwriting.ttf',20,'#FF0000');
$thumb -> Ripplefx = array(1,3,12,0,0);
$thumb -> Framewidth = 10;
$thumb -> Framecolor = '#FF6600';
$thumb -> Backgroundcolor = '#D0DEEE';
$thumb -> Shadow = true;
$thumb -> Createthumb();
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/textwobble.png" border="0"/><br/><br/>

In order to load pages faster you can embed images in HTML or email messages, called base64 encoded image data:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
&#101;&#99;&#104;&#111;&#32;'&#60;&#105;&#109;&#103;&#32;&#115;&#114;&#99;="'&#32;&#46;&#32;$&#116;&#104;&#117;&#109;&#98;&#32;&#45;&#62;&#32;&#67;&#114;&#101;&#97;&#116;&#101;&#98;&#97;&#115;&#101;&#54;&#52;('&#103;&#102;&#120;/&#105;&#109;&#97;&#103;&#101;&#46;&#106;&#112;&#103;')&#32;&#46;&#32;'"&#32;/&#62;';
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/embed.png" border="0"/><br/><br/>

By using the option 'Keeptransparency' you can resize images with transparency:<br/><br/>

<pre>&lt;?php
include_once('inc/easyphpthumbnail.<span>class</span>.php');
$thumb = <span>new</span> easyphpthumbnail;
$thumb -> Thumbsize = <span>100</span>;
$thumb -> Keeptransparency = true;
$thumb -> Createthumb('gfx/cloud.png');
?></pre>
<br/><br/>
<img src="http://www.mywebmymail.com/images/stories/keep.png" border="0"/><br/><br/>


<strong>Changes in version 2.0.5:</strong><br/><br/>
<ul>
	<li>Fixed a transparency bug in the function createemptythumbnail(); thanks to Alexander Vasilyev from <a href="http://www.Hamster3d.com" title="http://www.Hamster3d.com">http://www.Hamster3d.com</a></li>
	<li>Added an example for a dynamically created thumbnail</li>
</ul>

<br/><br/>

<hr/>

<br/><b><u>API reference:</u></b><br/><br/>

<b><i>Initialize the class:</i></b><br/><br/>

Initialize the class and output a thumbnail to the screen:<br/><br/>

<pre>include_once('inc/easyphpthumbnail.class.php');
$thumb = new easyphpthumbnail;
$thumb -> Createthumb('gfx/image.jpg');</pre>
<br/><br/>

Over 60+ Options, in alphabetical order:

<b><br/><br/>A<br/><br/></b>

<pre>$thumb -> Addtext               = array()       // Add text to the original image
                                                   Array with 6 values
                                                   [0]: 0=disable 1=enable
                                                   [1]: The text to add
                                                   [2]: The position of the text '50% 50%' is the center
                                                   [3]: Path to the TTF font (standard systemfont will be used)
                                                   [4]: The fontsize to use
                                                   [5]: The copyright text color in web format '#000000'
</pre><pre>$thumb -> Ageimage              = (array)       // Apply greyscale array(1,0,0) or aging effect array(1,10,80)
                                                   Age image; array with 3 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Add noise 0-100, 0=disable
                                                   [2]: Sephia depth 0-100, 0=disable (greyscale)
</pre>
<pre>$thumb -> Applyfilter           = (boolean)     // Apply a user defined 3x3 filter</pre>

<b><br/><br/>B<br/><br/></b>

<pre>$thumb -> Backgroundcolor       = (string)      // The backgroundcolor in web format '#FFFFFF'
</pre><pre>$thumb -> Binder                = (boolean)     // Draw a binder on the left side of the thumbnail
</pre><pre>$thumb -> Binderspacing         = (int)         // Space between binder rings in pixels
</pre><pre>$thumb -> Blur                  = (boolean)     // Auto-filter: Blur
</pre><pre>$thumb -> Borderpng             = (string)      // The path to the thumbnail border PNG image
</pre><pre>$thumb -> Brightness            = (array)       // Change the brightness of the image array(1,50)
                                                   Array with 2 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Brightness -100 to 100
</pre>
<b><br/><br/>C<br/><br/></b>

<pre>$thumb -> Chmodlevel            = (string)      // The chmod command to apply to saved thumbnails '0755'
</pre><pre>$thumb -> Clipcorner            = (array)       // Clip the corners of the thumbnail array(2,15,0,1,1,1,0)
                                                   Clip corners; array with 7 values
                                                   [0]: 0=disable 1=straight 2=rounded
                                                   [1]: Percentage of clipping
                                                   [2]: Clip randomly Boolean 0=disable 1=enable
                                                   [3]: Clip top left Boolean 0=disable 1=enable
                                                   [4]: Clip bottom left Boolean 0=disable 1=enable
                                                   [5]: Clip top right Boolean 0=disable 1=enable
                                                   [6]: Clip bottom right Boolean 0=disable 1=enable
</pre><pre>$thumb -> Colorreplace          = (array)       // Replace a color in the image array(1,'#FFFFFF','#FF6600',60)
                                                   Array with 4 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Color to replace in web format: '#00FF00'
                                                   [2]: Replacement color in web format: '#FF0000'
                                                   [3]: RGB tolerance 0 - 100
</pre><pre>$thumb -> Colorize              = (array)       // Merge a color in the image array(1,0,0,125,0)
                                                   Array with 5 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Red component 0 - 255
                                                   [2]: Green component 0 - 255
                                                   [3]: Blue component 0 - 255
                                                   [4]: Opacity level 0 - 127
</pre><pre>$thumb -> Contrast              = (array)       // Change the contrast of the image array(1,30)
                                                   Array with 2 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Contrast -100 to 100
</pre><pre>$thumb -> Copyrighttext         = (string)      // Copyright text
</pre><pre>$thumb -> Copyrightposition     = (string)      // The position of the text '50% 50%' is the center
</pre><pre>$thumb -> Copyrightfonttype     = (string)      // The path to the TTF font (standard systemfont will be used)
</pre><pre>$thumb -> Copyrightfontsize     = (int)         // The fontsize to use
</pre><pre>$thumb -> Copyrighttextcolor    = (string)      // The copyright text color in web format '#000000'
</pre><pre>$thumb -> Createthumb('imagepath'[,'output'])   // Create and output thumbnail 
                                                   Function with 2 values
                                                   [string]: Filename for the image to convert
                                                   [string]: Output to the 'screen' (standard) or 'file' (option)
</pre><pre>$thumb -> Createbase64('imagepath')                // Output the thumbnail as base64 encoded data 
                                                   Function with 1 value
                                                   [string]: Filename for image to convert
</pre><pre>$thumb -> Createcanvas(i,i,i,s,b)               // Create an image from a canvas - use with Createthumb() 
                                                   Function with 5 values
                                                   [int]: Canvas width in pixels
                                                   [int]: Canvas height in pixels
                                                   [int]: Imagetype PHP: IMAGETYPE_PNG, IMAGETYPE_GIF, IMAGETYPE_JPEG
                                                   [string]: Fill color
                                                   [boolean]: Transparent (boolean)
</pre><pre>$thumb -> Create_apng(array, string, int)       // Create the APNG thumbnail 
                                                   Function with 3 values
                                                   [array]: Array with filenames of PNG images (frames)
                                                   [string]: Filename for APNG: 'animation.png'
                                                   [int]: Delay between frames in milliseconds
</pre><pre>$thumb -> Cropimage             = (array)       // Crop the thumbnail array(0,0,20,20,20,20)
                                                   Crop image; array with 6 values
                                                   [0]: 0=disable 1=free crop 2=center crop 3=square crop
                                                   [1]: 0=percentage 1=pixels
                                                   [2]: Crop left
                                                   [3]: Crop right
                                                   [4]: Crop top
                                                   [5]: Crop bottom
</pre><pre>$thumb -> Croprotate            = (boolean)     // Rotate function that crops the image to fit on the same canvas size
</pre>

<b><br/><br/>D<br/><br/></b>

<pre>$thumb -> Displacementmap       = (array)       // Deform the image with a displacementmap 
                                                   Array with 7 values: array(1,'gfx/displacementmap.jpg',0,0,0,50,50)
                                                   [0]: 0=disable 1=enable
                                                   [1]: Path to displacement image (grey #808080 is neutral)
                                                   [2]: 0=resize the map to fit the image 1=keep original map size
                                                   [3]: X coordinate for map position in px 
                                                   [4]: Y coordinate for map position in px
                                                   [5]: X displacement scale in px
                                                   [6]: Y displacement scale in px
</pre><pre>$thumb -> Displacementmapthumb  = (array)       // Deform the thumbnail with a displacementmap 
                                                   Array with 7 values: array(1,'gfx/displacementmap.jpg',0,0,0,50,50)
                                                   [0]: 0=disable 1=enable
                                                   [1]: Path to displacement image (grey #808080 is neutral)
                                                   [2]: 0=resize the map to fit the image 1=keep original map size
                                                   [3]: X coordinate for map position in px 
                                                   [4]: Y coordinate for map position in px
                                                   [5]: X displacement scale in px
                                                   [6]: Y displacement scale in px
</pre><pre>$thumb -> Divisor               = (int)         // The divisor for the 3x3 filter
</pre>

<b><br/><br/>E<br/><br/></b>

<pre>$thumb -> Edge                  = (boolean)     // Auto-filter: Edge
</pre><pre>$thumb -> Emboss                = (boolean)     // Auto-filter: Emboss
</pre>

<b><br/><br/>F<br/><br/></b>

<pre>$thumb -> Fliphorizontal        = (boolean)     // Flips the image over the horizontal axis
</pre><pre>$thumb -> Flipvertical          = (boolean)     // Flips the image over the vertical axis
</pre><pre>$thumb -> Filter                = (array)       // Matrix of size 3x3 array(-1,-1,-1,-1,8,-1,-1,-1,-1)
                                                   Filter, array with 9 values
                                                   [0]: a1,1
                                                   [1]: a1,2
                                                   [2]: a1,3
                                                   [3]: a2,1
                                                   [4]: a2,2
                                                   [5]: a2,3
                                                   [6]: a3,1
                                                   [7]: a3,2
                                                   [8]: a3,3
</pre><pre>$thumb -> Framewidth            = (int)         // Add a frame around the thumbnail in pixels
</pre><pre>$thumb -> Framecolor            = (string)      // The framecolor in web format '#FFFFFF'
</pre>

<b><br/><br/>G<br/><br/></b>

<pre>$thumb -> Gamma                 = (array)       // Change the gamma of the image array(1,0.5)
                                                   Array with 2 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Gamma correction factor
</pre><pre>$thumb -> Greyscale             = (boolean)     // Convert to true color grayscale
</pre>

<b><br/><br/>I<br/><br/></b>

<pre>$thumb -> Inflate               = (boolean)     // Allow images to be enlarged
</pre>

<b><br/><br/>K<br/><br/></b>

<pre>$thumb -> Keeptransparency     = (boolean)      // Keep transparency of original image
</pre>

<b><br/><br/>L<br/><br/></b>

<pre>$thumb -> Lakefx                = (array)       // Apply a lake deformation to the image array(1,15,80)
                                                   Array with 3 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Density of the waves
                                                   [2]: Lake area measured from bottom 0 - 100
</pre>

<b><br/><br/>M<br/><br/></b>

<pre>$thumb -> Maketransparent       = (array)       // Make the image transparent array(1,0,'#171915',30)
                                                   Array with 4 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: 0=PNG 1=GIF
                                                   [2]: Replacement color in web format: '#FF0000'
                                                   [3]: RGB tolerance 0 - 100
</pre><pre>$thumb -> Mean                  = (boolean)     // Auto-filter: Mean
</pre><pre>$thumb -> Medianfilter          = (boolean)     // Apply a median noise reduction filter
</pre><pre>$thumb -> Mirror                = (array)       // Apply a mirror effect to the thumbnail array(1,10,70,40,2)
                                                   Array with 5 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Mirror transparency gradient starting strength 0 - 100
                                                   [2]: Mirror transparency gradient ending strength 0 - 100
                                                   [3]: Mirror area 0 - 100
                                                   [4]: Mirror 'gap' between original image and reflection in px
</pre><pre>$thumb -> Mirrorcolor           = (string)      // The Mirror gradient color in web format '#000000'
</pre>

<b><br/><br/>N<br/><br/></b>

<pre>$thumb -> Negative              = (boolean)     // Create image negative
</pre>

<b><br/><br/>O<br/><br/></b>

<pre>$thumb -> Offset                = (int)         // The color offset for the filter
</pre>

<b><br/><br/>P<br/><br/></b>

<pre>$thumb -> Palette               = (array)       // Change the palette of the image array(1,32)
                                                   Array with 2 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Amount of colors for the palette
</pre><pre>$thumb -> Percentage            = (boolean)     // Use percentage instead of pixels
</pre><pre>$thumb -> Perspective           = (array)       // Apply a perspective to the image array(1,0,20)
                                                   Array with 3 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Direction 0=left 1=right 2=top 3=bottom
                                                   [2]: Perspective strength 0 - 100
</pre><pre>$thumb -> Perspectivethumb      = (array)       // Apply a perspective to the thumbnail array(1,0,20)
                                                   Array with 3 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Direction 0=left 1=right 2=top 3=bottom
                                                   [2]: Perspective strength 0 - 100
</pre><pre>$thumb -> Pixelscramble         = (array)       // Scramble pixels in the image array(1,4,2)
                                                   Array with 3 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Pixel range
                                                   [2]: Repeats (use with care!)
</pre><pre>$thumb -> Pixelate              = (array)       // Pixelate the image array(1,10)
                                                   Array with 2 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Block size in px
</pre><pre>$thumb -> Polaroid              = (boolean)     // Convert the thumbnail to a polaroid look
</pre><pre>$thumb -> Polaroidtext          = (string)      // Write a text on the polaroid
</pre><pre>$thumb -> Polaroidfonttype      = (string)      // The path to the TTF font
</pre><pre>$thumb -> Polaroidfontsize      = (int)         // The fontsize to use
</pre><pre>$thumb -> Polaroidtextcolor     = (string)      // The polaroid text color in web format '#000000'
</pre><pre>$thumb -> Polaroidframecolor    = (string)      // The polaroid frame color in web format '#FFFFFF'
</pre>

<b><br/><br/>Q<br/><br/></b>

<pre>$thumb -> Quality               = (int)         // The output quality of JPG images
</pre>

<b><br/><br/>R<br/><br/></b>

<pre>$thumb -> Ripplefx              = (array)       // Apply a ripple deformation to the image array(1,5,15,5,5)
                                                   Array with 5 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Amount of horizontal waves
                                                   [2]: Amplitude of horizontal waves in px
                                                   [3]: Amount of vertical waves
                                                   [4]: Amplitude of vertical waves in px
</pre><pre>$thumb -> Rotate                = (int)         // Rotate the image in degrees
</pre>

<b><br/><br/>S<br/><br/></b>

<pre>$thumb -> Shadow                = (boolean)     // Add a shadow around the thumbnail
</pre><pre>$thumb -> Shading               = (array)       // Apply shading to the image array(1,70,80,0)
                                                   Array with 4 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Shading strength 0 - 100
                                                   [2]: Shading area 0 - 100
                                                   [3]: Shading direction 0=right 1=left 2=top 3=bottom
</pre><pre>$thumb -> Shadingcolor          = (string)      // The shading gradient color in web format '#000000'
</pre><pre>$thumb -> Sharpen               = (boolean)     // Auto-filter: Sharpen
</pre><pre>$thumb -> Square                = (boolean)     // Draw thumbnail on a square canvas
</pre>

<b><br/><br/>T<br/><br/></b>

<pre>$thumb -> Thumbfilename         = (string)      // New filename (with extension)
</pre><pre>$thumb -> Thumbheight           = (int)         // Height of the thumbnail in pixels
</pre><pre>$thumb -> Thumblocation         = (string)      // The path to the thumbnail directory
</pre><pre>$thumb -> Thumbprefix           = (string)      // The prefix for the thumb filename
</pre><pre>$thumb -> Thumbsaveas           = (string)      // Convert the thumbnail to a different format, JPG, GIF or PNG
</pre><pre>$thumb -> Thumbsize             = (int)         // Thumbnailsize in pixels for width (landscape) or height (portrait)
</pre><pre>$thumb -> Thumbwidth            = (int)         // Width of the thumbnail in pixels
</pre><pre>$thumb -> Twirlfx               = (array)       // Apply a twirl deformation to the image array(1,20,0)
                                                   Array with 3 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Effect strength 0 to 100
                                                   [2]: Direction of twirl 0=clockwise 1=anti-clockwise
</pre>

<b><br/><br/>W<br/><br/></b>

<pre>$thumb -> Waterdropfx           = (array)       // Apply a waterdrop deformation to the image array(1,1.2,400,40)
                                                   Array with 4 values
                                                   [0]: Boolean 0=disable 1=enable
                                                   [1]: Amplitude in px
                                                   [2]: Radius in px
                                                   [3]: Wavelength in px
</pre><pre>$thumb -> Watermarkpng          = (string)      // The path to the watermark PNG image
</pre><pre>$thumb -> Watermarkposition     = (string)      // The position of the watermark '50% 50%' is the center
</pre>
<pre>$thumb -> Watermarktransparency = (int)         // The transparency of the watermark 0 to 100</pre>


<br/><br/>


<div style="text-align: center;width: 100%;">
	<center><a href="http://www.hotscripts.com/rate/81975/?RID=N367715" title="Rate our Script at Hot Scripts" target="_blank" style="display: block; width: 125px; height: 45px;"><img src="http://cdn.hotscripts.com/img/widgets/btn_125x45-1.gif" alt="Rate our Script at Hot Scripts" style="border: 0;"/></a><span
			style="display: block; width: 125px; text-align: center; margin: 2px 0 0; padding: 0; color: #999; font: 9px Arial, Helvetica, sans-serif;"><a target="_blank" href="http://www.hotscripts.com/?RID=N367715" style="color: #666; text-decoration: none;">Listed at Hot Scripts</a> in <a target="_blank"
																																																																									 href="http://www.hotscripts.com/category/php/scripts-programs/image-handling/image-manipulation/?RID=N367715"
																																																																									 style="color: #666; text-decoration: none;">PHP</a></span></center>
</div>
<table id="attachments" class="sticky-enabled">
	<thead>
	<tr>
		<th>Attachment</th>
		<th>Size</th>
	</tr>
	</thead>
	<tbody>
	<tr class="odd">
		<td><a href="http://www.mywebmymail.com/?q=system/files/easyphpthumbnail.zip">easyphpthumbnail.zip</a></td>
		<td>498.34 KB</td>
	</tr>
	</tbody>
</table>
</div>

</td>
<td class="node-mr"></td>
</tr>

<tr>
	<td class="node-bl"></td>
	<td class="node-bc"></td>
	<td class="node-br"></td>
</tr>
</table>
<div id="block-block-1" class="clear-block block block-block">
	<div class="content"><br/><br/>
		<center>
			<script>
				<!--
				google_ad_client = "pub-5765361673811411";
				//468x60, gemaakt 24-8-08
				google_ad_slot = "0941868455";
				google_ad_width = 468;
				google_ad_height = 60;
				//-->
			</script>

			<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
		</center>
		<br/><br/>
	</div>
</div>
</div>
</td>


<td id="main-r"></td>

</tr>
</table>

</div>
<!-- end of div#container -->

<table border="0" cellpadding="0" cellspacing="0" id="footer">
	<tr>
		<td id="foot-l">
		<td>
		<td id="foot">
			<small>© Copyright 2005-2011 MyWebMyMail.com. All rights reserved. <a href="?q=content/disclaimer">Disclaimer</a><br/>
				All posted articles and comments are copyright by their owner, and reflect their own views and opinions, which may not necessarily be consistent with the views and opinions of the owners of MyWebMyMail.com.
			</small>
			<script>
				<!--//--><![CDATA[//><!--
				var _gaq = _gaq || [];
				_gaq.push(["_setAccount", "UA-7522538-1"]);
				_gaq.push(["_trackPageview"]);
				(function () {
					var ga = document.createElement("script");
					ga.type = "text/javascript";
					ga.async = true;
					ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
					var s = document.getElementsByTagName("script")[0];
					s.parentNode.insertBefore(ga, s);
				})();
				//--><!]]>
			</script>
		</td>
		<td id="foot-r">
		<td>
	</tr>
</table>

</div>
<!-- end of div#wrapper -->

</body>
</html>
